package com.soccerlover9527.jadis.datasturct;

import com.soccerlover9527.jadis.enums.DataType;

/**
 * <p></p>
 *
 * @author soccerlover9527@gmail.com
 * @since 2023-08-04
 */
public class AbstractJadisObject implements JadisObject {

    protected final byte type;

    public AbstractJadisObject(DataType dataType) {
        this.type = dataType.getType();
    }

    @Override
    public DataType type() {
        return DataType.getByCode(type);
    }
}
